package com.qdxy.app.lhjh.activities.exceptions;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.View;

import com.lf.tempcore.tempActivity.TempActivity;
import com.qdxy.app.lhjh.R;

import butterknife.OnClick;

/**
 * 异常处理
 * Created by KY on 2016/11/8.
 */

public class ActExceptionJudgement extends TempActivity {
//    @Bind(R.id.act_deal_exception_gongjian_btn)   LinearLayout actDealExceptionGongjianBtn;
//    @Bind(R.id.act_deal_exception_daoju_btn)   LinearLayout actDealExceptionDaojuBtn;
//    @Bind(R.id.act_deal_exception_shebei_btn)   LinearLayout actDealExceptionShebeiBtn;
//    @Bind(R.id.act_deal_exception_normal_btn)   LinearLayout actDealExceptionNormalBtn;

    @Override
    protected void initContentView(Bundle savedInstanceState) {
        setContentView(R.layout.act_exception_judgement_layout);
    }

    @Override
    protected void findViews() {
        Toolbar toolbarTop = (Toolbar) findViewById(R.id.toolbar_top);
        initToolbar(toolbarTop, "异常判断");
    }

    @Override
    protected void setListeners() {

    }

    @Override
    protected void bindValues() {

    }

    @OnClick({R.id.act_deal_exception_gongjian_btn, R.id.act_deal_exception_daoju_btn, R.id.act_deal_exception_shebei_btn, R.id.act_deal_exception_normal_btn})
    @Override
    protected void OnViewClicked(View v) {
        Intent intent=null;
        switch (v.getId()) {
            case R.id.act_deal_exception_gongjian_btn:
                intent = new Intent(ActExceptionJudgement.this, ActGenGongjianException.class);//工件异常通知
                break;
            case R.id.act_deal_exception_daoju_btn:
                intent = new Intent(ActExceptionJudgement.this, ActGenDaoJuException.class);//刀具异常通知
                break;
            case R.id.act_deal_exception_shebei_btn:
                intent = new Intent(ActExceptionJudgement.this, ActGenEquException.class);//设备异常通知
                break;
            case R.id.act_deal_exception_normal_btn:
                break;
        }
        if (intent!=null){
            startActivity(intent);
        }
    }


}
